/*
 * @Author: aggfb 714740235@qq.com
 * @Date: 2025-01-06 15:20:09
 * @LastEditors: aggfb 714740235@qq.com
 * @LastEditTime: 2025-07-12 21:24:59
 * @FilePath: \wire_receiver_main\app\task_manager.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "task_manager.h"


void start_task(void)
{
    taskENTER_CRITICAL();

    /* 杂项任务 */
    xTaskCreate((TaskFunction_t )task_misc,     	
                (const char*    )"misc",   	
                (uint16_t       )TASK_MISC_STK_SIZE, 
                (void*          )NULL,				
                (UBaseType_t    )TAST_MISC_PRIO,	
                (TaskHandle_t*  )NULL);   
    /* lora 通信任务 */
    xTaskCreate((TaskFunction_t )task_rx_lora, \
                (const char*    )"rx_lora", \
                (uint16_t       )TASK_LORA_RX_STK_SIZE, \
                (void*          )NULL, \
                (UBaseType_t    )TASK_LORA_RX_PRIO, \
                (TaskHandle_t*  )NULL);     
#if 1								
    /* 显示屏 通信任务 */
    xTaskCreate((TaskFunction_t )task_rx_scan, \
                (const char*    )"rx_scan", \
                (uint16_t       )TASK_SCAN_RX_STK_SIZE, \
                (void*          )NULL, \
                (UBaseType_t    )TASK_SCAN_RX_PRIO, \
                (TaskHandle_t*  )NULL);    
#endif
    taskEXIT_CRITICAL();
}
